package cn.golxen.goods.feign;

import cn.golxen.commons.entity.Result;
import cn.golxen.commons.vo.BarcodeInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "supermarket-management-barcode")
public interface BarcodeFeign {
    @GetMapping(value = "/barcode/info/{code}")
    public BarcodeInfoVo getBarcodeInfoByCode(@PathVariable String code);

    @GetMapping(value = "/barcode/info")
    public BarcodeInfoVo getBarcodeInfo(@RequestParam String url);

    @GetMapping(value = "/barcode/code")
    public String getCode(@RequestParam String url);
}
